// Utilities
import { defineConfig, mergeConfig } from "vite";

import ossConfig from "./oss.config";
import uploader from "vite-plugin-aliyun-oss";

import baseConfig from "./vite.config.mjs";
// https://vitejs.dev/config/
export default defineConfig(() => {
  return mergeConfig(baseConfig, {
    base: "/",
    // plugins: [
    //   {
    //     ...uploader({ ...ossConfig() }),
    //   },
    // ],
    define: {
      "process.env": {
        __APP_ENV__: "pre",
      },
    },
  });
});
